package com.zerox.service;

import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface SysUserService {


     SysUser login(String username,String password);

     List<SysUser> list(Integer startIndex,Integer pageSize,String realName,Integer roleId);

    int count(String realName,Integer roleId);

    int add(SysUser sysUser);

    SysUser selectById(Integer id);

    int delete(Integer id);

    int update(SysUser sysUser);

    SysUser selectByAccount(String account);

    SysUser selectUserId(Integer id);

//    int result();
}
